package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface UserInfoRepository extends MongoRepository<UserInfo,String> {
    /**
     * 判断手机号格式
     * @param phone
     * @return
     */
    UserInfo findByPhone(String phone);
    /**
     * 获取用户集合
     * @param name
     * @return
     */
    List<UserInfo> findByCity(String name);

}
